Source File
text.go
Belonging Package
github.com/K-Phoen/grabana/variable/text
package textimport ()// Option represents an option that can be used to configure a textbox variable.type Option func(constant *Text)// Text represents a "textbox" templated variable.type Text struct {Builder sdk.TemplateVar}// New creates a new "query" templated variable.func ( string, ...Option) *Text {:= &Text{Builder: sdk.TemplateVar{Name: ,Label: ,Type: "textbox",Options: []sdk.Option{},}}for , := range {()}return}// Label sets the label of the variable.func ( string) Option {return func( *Text) {.Builder.Label =}}// HideLabel ensures that this variable's label will not be displayed.func () Option {return func( *Text) {.Builder.Hide = 1}}// Hide ensures that the variable will not be displayed.func () Option {return func( *Text) {.Builder.Hide = 2}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |